﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CSharpLearn_Chapter4.Property
{
    class Example
    {
        //属性的定义
        //哪个定义是无效的
        //选择题4
        public string NameA { get; set; }
        //public string NameB { get { "Default"; } };
        public string NameC { get; private set; }
        public string NameD { get; set; } = null;


    }

    public class PersonTest
    {
        public string? FirstName { get; private set; }

        // Omitted for brevity.
    }
}
